<include file="Admin@default/public/header" />
<div class="toptip"  >
<div class="toptit">提示：</div>
<p class="link_green_line">网站接入百度地图API后，平台企业用户可以使用地图功能，相关费用问题请与服务商洽谈；
接入百度地图API前，网站需首先进行申请，获得对应的百度地图AK，以保证后续流程中背调模块的可用性。现在就去<a href="http://lbsyun.baidu.com/" target="_blank">[申请]</a></p>
</div>
<div class="toptit">基本配置</div>
<form id="form1" action="{:U('edit')}" method="post" name="FormData" enctype="multipart/form-data">
    <div class="form_main width200">
        <div class="fl">百度地图AK:</div>
        <div class="fr">
            <input name="applet_map_key" type="text" class="input_text_default" maxlength="100" value="{:C('qscms_applet_map_key')}"/>
        </div>
        <div class="fl"></div>
        <div class="fr">
            <input type="button" class="admin_submit" value="保存" id="J_submit"/>
      <!--       <input type="button" class="admin_submit" value="返回" onClick="history.go(-1)"/>
 -->        </div>
        <div class="clear"></div>
    </div>
</form>
</div>
<include file="Admin@default/public/footer" />
<script type="text/javascript">
  var uploadUrl = "{:U('Admin/Upload/form_upload')}";
</script>
<script src="__ADMINPUBLIC__/js/ajaxfileupload.js"></script>
<script src="__ADMINPUBLIC__/js/fileupload.js"></script>
<script type="text/javascript">
    $(document).ready(function(){
        $('#J_submit').click(function(){
            var that = $(this);
            if(that.hasClass('disabled')){
                return false;
            }
            that.val('正在保存...').addClass('disabled');
            $.post("{:U('edit')}",$('#form1').serialize(),function(result){
                if(result.status==1){
                    disapperTooltip("success", result.msg,function(){
                        location.href='{:U("map_index")}';
                    });
                }else{
                    disapperTooltip("remind", result.msg,function(){
                        that.val('保存').removeClass('disabled');
                    });
                    return false;
                }
            },'json');
        });
    });
</script>
</body>
</html>